package com.training.java.core.interfaces;

public class AnimalDemo {

	public static void main(String[] args) {
		
		Animal cat = new Cat ("Miley", "Black & White", 7);
		Animal dog = new Dog ("Dougie", "Brown", "German Shephard", 10);
		
		execute(cat); 
		execute(dog);
	}
        
 	private static void execute(Animal animal) {
 		animal.name();
 		animal.eat();
 		animal.noise();
 		animal.sleep();
		
	}

}
